<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <div class="h">
            <a href="{:U('add')}" class="btn btn-info">
                <i class="glyphicon glyphicon-plus"></i> 新增角色
            </a>
        </div>
        <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
            <thead>
                <tr>
                    <td align="center">ID</td>
                    <td align="center">组名称</td>
                    <td align="center">状态</td>
                    <td align="center">备注</td>
                    <td align="center">创建者</td>
                    <td align="center">操作</td>
                </tr>
            </thead>
            <volist name="list" id="vo">
                <tr class="data_list">
                    <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" /></td>
                    <td style="text-indent:{$vo['cl']*10}px"><gt name="vo['cl']" value="0">|-</gt>
                        {$vo.name}</td>
                    <td><eq name="vo['status']" value="1"><span class="status1 status_btn" field="status,{$vo.id}"></span>
                <else/>
                <span class="status0 status_btn" field="status,{$vo.id}"></span></eq></td>
                    <td>{$vo.remark}</td>
                    <td>{$vo.nickname}({$vo.account})</td>
                    <td align="center"><a href="{:U('Access/index',array('role_id'=>$vo['id']))}">
                            授权
                        </a>
                        |
                        <a href="{:U('edit',array('id'=>$vo['id']))}">
                            编辑
                        </a>
                        |
                        <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');">
                            删除
                        </a></td>
                </tr>
            </volist>
                <div class="pages">
            
                <div class="controlList fl">
            <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();">
                <i class="glyphicon glyphicon-check"></i> 全选/反选
            </a>
            <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();">
                <i class="glyphicon glyphicon-unchecked"></i> 全不选
            </a>
            <a class="btn btn-danger btn-sm" href="javascript:void(0);" onclick="delall();">
                <i class="glyphicon glyphicon-trash"></i> 删除选中
            </a>
            <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="update_sort('id','sort','','{:U('dosort')}');">
                <i class="glyphicon glyphicon-refresh"></i> 更新排序
            </a>
        </table>
    </div>
    <div class="clear">
    </div>
</div>
<include file="Public:footer" />